home *** CD-ROM | disk | FTP | other *** search
/ Emulator Universe CD / emulatoruniversecd1998.iso / CPC / Utils / CpcFile System / UNIX.H < prev   
Encoding:
C/C++ Source or Header  |  1996-02-12  |  1.3 KB  |  59 lines

  1.  
  2. /*                <<<<Last Modified: Mon Feb 12 17:31:35 1996>>>>
  3. ------------------------------------------------------------------------------
  4.  
  5.         =====
  6.         CPCfs  --  u n i x . h   ---   Unix specific header
  7.         =====
  8.  
  9.     Version 0.85                    (c) February '96 by Derik van Zuetphen
  10. ------------------------------------------------------------------------------
  11. */
  12.  
  13.  
  14.  
  15. #include <sys/file.h>
  16. #include <getopt.h>
  17. #include <unistd.h>
  18. #include <strings.h>
  19. #include <setjmp.h>
  20. #if USE_READLINE
  21. #include <readline/readline.h>
  22. #include <readline/history.h>
  23. #endif
  24.  
  25. #if HPUX
  26. char    cwdbuffer[256];
  27. #define getwd(DUMMY)        getcwd(cwdbuffer,256)
  28. #endif
  29.  
  30. #define SHELLVAR    "SHELL"
  31. #define SHELLDEFAULT    "/bin/sh"
  32. #define PAGERDEFAULT    "more"
  33. #define LDIRCOMMAND    "ls -l"
  34. #define DIRSEPARATOR    '/'
  35. #define FIRST_OPTIND    0
  36. #define O_BINARY    0        /* dummy to make DOS happy */
  37. #define ENTER        10        /* keycode */
  38.  
  39. extern char Break_Wish;
  40.  
  41. void break_handler();
  42. void disable_break();
  43.  
  44. /* empty dummies */
  45. #define save_path()
  46. #define rest_path()
  47.  
  48. char *glob_file(char *pattern);
  49. char *glob_next();
  50.  
  51. long coreleft();
  52. char*    tmp_nam(char*);        /* because DOS' tmpnam() ignores $TEMP */
  53.  
  54. char wait_for_key (int,char);
  55. void clrscr();
  56. void gotoxy(int col,int lin);
  57.  
  58. void os_init();
  59.